################################################################################
# ffi/CMakeLists.txt
# CMake file for the ffi Document Processor
# Copyright (C) 2012 by Kevin Carlson. All rights reserved.
# Released under the terms of the Simplified (2-clause) BSD License.
################################################################################

link_directories(${GTKMM_LIBRARY_DIRS})
include_directories(${GTKMM_INCLUDE_DIRS})

add_subdirectory(ui)

add_library(FfiDocument ffiDocument.cc)
add_library(FfiParagraphStyle ffiParagraphStyle.cc)
add_library(FfiTextBlock ffiTextBlock.cc)
add_library(FfiSplashScreen ui/FfiSplashScreen.cc)

add_executable (ffi ffi.cc)

target_link_libraries(ffi FfiDocument)
target_link_libraries(ffi FfiParagraphStyle)
target_link_libraries(ffi FfiTextBlock)
target_link_libraries(ffi FfiSplashScreen)

target_link_libraries(ffi ${GTKMM_LIBRARIES})